package com.company;

// StringBuffer的内容可以修改，但String的内容不可以

public class EduStringBuffer {
    public static void main(String[] args) throws Exception {
        String str = "String1Class";
        changeString(str);
        System.out.println(str);

        StringBuffer strBf = new StringBuffer();
        strBf.append("StringBuffer1Class");
        System.out.println(strBf) ;
    }
    public static String changeString(String str) {
        return str + " yes";
    }
}
